<template>
  <div class="home-container">
    <h1>欢迎来到首页</h1>
    <p>这是一个使用Vue 3 + TypeScript开发的应用</p>
    <div class="nav-links">
      <router-link to="/login">登录</router-link>
      <router-link to="/register">注册</router-link>
      <router-link to="/profile">个人中心</router-link>
    </div>
  </div>
</template>

<script lang="ts" setup>
// 首页组件
</script>

<style scoped>
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.nav-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  background-color: #42b983;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #3aa876;
}
</style>